package com.adgox.tiantianbiting.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

public class MessageBean  {

    /**
     * code : 0
     * data : {"data":[{"title":"ceshi","content":"ceshi","linkUrl":"2","imageUrl":"2","flg":1,"type":0,"status":1}],"pageSize":10,"startPage":1,"totalResults":1,"totalPages":1}
     */

    private String code;
    private DataBeanX data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }



    public static class DataBeanX {
        /**
         * data : [{"title":"ceshi","content":"ceshi","linkUrl":"2","imageUrl":"2","flg":1,"type":0,"status":1}]
         * pageSize : 10
         * startPage : 1
         * totalResults : 1
         * totalPages : 1
         */

        private int pageSize;
        private int startPage;
        private int totalResults;
        private int totalPages;
        private List<DataBean> data;

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getStartPage() {
            return startPage;
        }

        public void setStartPage(int startPage) {
            this.startPage = startPage;
        }

        public int getTotalResults() {
            return totalResults;
        }

        public void setTotalResults(int totalResults) {
            this.totalResults = totalResults;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean implements MultiItemEntity{
            public static final  int Date=0;
            public static final  int Data=1;
            /**
             * title : ceshi
             * content : ceshi
             * linkUrl : 2
             * imageUrl : 2
             * flg : 1
             * type : 0
             * status : 1
             */
            @Override
            public int getItemType() {
                return dataType;
            }
            private String title;
            private String content;
            private String linkUrl;
            private String createTimeStr;
            private String imageUrl;
            private String param;

            public String getParam() {
                return param;
            }

            public void setParam(String param) {
                this.param = param;
            }

            public String getProgram() {
                return program;
            }

            public void setProgram(String program) {
                this.program = program;
            }

            private String program;
            private int flg;
            private int dataType;

            public int getDataType() {
                return dataType;
            }

            public void setDataType(int dataType) {
                this.dataType = dataType;
            }

            private int sysMsgType;

            public int getSysMsgType() {
                return sysMsgType;
            }

            public void setSysMsgType(int sysMsgType) {
                this.sysMsgType = sysMsgType;
            }

            public String getCreateTimeStr() {
                return createTimeStr;
            }

            public void setCreateTimeStr(String createTimeStr) {
                this.createTimeStr = createTimeStr;
            }

            private int type;
            private int status;

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getLinkUrl() {
                return linkUrl;
            }

            public void setLinkUrl(String linkUrl) {
                this.linkUrl = linkUrl;
            }

            public String getImageUrl() {
                return imageUrl;
            }

            public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
            }

            public int getFlg() {
                return flg;
            }

            public void setFlg(int flg) {
                this.flg = flg;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }
        }
    }
}
